//
// Created by lymk on 2022/3/21.
//

#ifndef SOFTRENDER_BOXMESH_H
#define SOFTRENDER_BOXMESH_H
#include "IMesh.h"

class BoxMesh : public IMesh {
    float width;
    float height;
    float depth;
    std::vector<glm::vec4> color;
    std::vector<glm::vec3> point;
    std::vector<std::vector<int>> index;
    std::vector<glm::vec3> normal;
public:
    BoxMesh(float w, float h, float d);
    void Init();
    void SetColor(glm::vec4 c);
    void GetVertex(std::vector<VertexIn> &InVertex,std::vector<std::vector<int>>& idx) override;
};


#endif //SOFTRENDER_BOXMESH_H
